package com.efounder.activity.Order;

import androidx.annotation.Nullable;
import android.view.ViewGroup;

import com.efounder.adapter.BaseAdapter;
import com.efounder.bean.GoodsBean;
import com.efounder.holder.CreateOrderHolder;
import com.efounder.mobilemall.R;

import java.util.List;

/**
 * Created by Marcello on 2018/9/18.
 */
public class OrderGoodAdapter extends BaseAdapter<GoodsBean,CreateOrderHolder>{
    /**
     * 设置数据,并设置点击回调接口
     *
     * @param list 数据集合
     */
    public OrderGoodAdapter(@Nullable List<GoodsBean> list) {
        super(list);
    }

    @Override
    public CreateOrderHolder onCreateViewHolder(ViewGroup parent, int viewType) {
        return new CreateOrderHolder(parent, R.layout.layout_order_item_body);
    }
}
